package com.a2.a2BDD;

import com.a2.a2BDD.DatabaseHelper.TablaCampos;
import com.a2.a2BDD.DatabaseHelper.TablaGrupos;
import com.a2.a2BDD.DatabaseHelper.TablaTablas;

import android.graphics.Typeface;

public class VariablesConstantesBD {
	
	
	/** VARIABLES **/
	public static DatabaseHelperWrapper databaseh = null;
	public static Typeface    externalFont_1      = null;
	public static Typeface    externalFont_2      = null;
	
	/** CONSTANTES **/
	
	//ACTIVITYS
	public static final int ACTIVITY_1	                     = 1;
	public static final int ACTIVITY_2	                     = 2;
	public static final int ACTIVITY_3	                     = 3;
	public static final int ACTIVITY_99	                     = 99;
	
	//ACTIVITYS REQUEST 
	public final static int PRIMARY_ACTIVITY_REQUEST_CODE    = 0;
	public final static int SECONDARY_ACTIVITY_REQUEST_CODE  = 1;
	public final static int ESTRUCTURA_ACTIVITY_REQUEST_CODE = 2;
	public final static int NOTHING_ACTIVITY_RESULT_CODE     = 99;
	
	//TIPOS DE DATOS DE LOS CAMPOS
	public static final int TIPO_ALFANUM        			 = 0;
	public static final int TIPO_ENTERO         			 = 1;
	public static final int TIPO_DOUBLE        			     = 2;
	public static final int TIPO_BOOLEAN       			     = 3;
	public static final int TIPO_AUTOINC       				 = 4;
	public static final int TIPO_FECHA         				 = 5;
	public static final int TIPO_HORA          				 = 6;
	
	//TIPOS DE OBJETOS
	public static final int OBJETO_TEXTO       				 = 0;
	public static final int OBJETO_NUMERICO    				 = 1;
	public static final int OBJETO_FECHA       				 = 2;	
	public static final int OBJETO_RADIO      		  	 	 = 3;
	public static final int OBJETO_COMBO       				 = 4;
	public static final int OBJETO_CHECK       				 = 5;
	public static final int OBJETO_HORA        				 = 6;
	
	
	//TIPOS DE ATRIBUTOS
	public static final int ATRIB_PRIMARYK     				 = 0;
	public static final int ATRIB_NONULL       				 = 1;
	public static final int ATRIB_NULL         				 = 2;
	
	//TIPOS DE ATRIBUTOS STRING
	public static final String ATRIB_PRIMARYK_S     		 = "UNICO";
	public static final String ATRIB_NONULL_S       		 = "NOT NULL";
	public static final String ATRIB_NULL_S         		 = "";
	
	//ARREGLO DE NOMBRES RESERVADOS
	public static final String[] TBLNAME_RESERVADOS          = {TablaTablas.NOMBRE,
																TablaCampos.NOMBRE,
																TablaGrupos.NOMBRE};
	
	
	
	

}
